# apps/app01/serializers.py

from rest_framework import serializers
from apps.app01.models import Product

class ProductListSerializer(serializers.ModelSerializer):

    class Meta:
        model = Product
        fields = ['id', 'name', 'pic_url', 'price', 'color', 'memory', 'storage']
